<%@ page import="com.hline.kbcss.MyDriver"%>
<%@ page import="java.sql.*"%>
<%
String fid=request.getParameter("fid");
String field=request.getParameter("field");
String fdesc=request.getParameter("fielddesc");
Statement st=null;
PreparedStatement pst=null;
try{
st=MyDriver.getConnection("READ");
int i=st.executeUpdate("update fields set fname='"+field+"' , fdesc='"+fdesc+"' where fid='"+fid+"'");
	
	if(i>0)
	{
		response.sendRedirect("interests.jsp");
	}
	else
	{
		response.sendRedirect("editInt.jsp?fid="+fid);
	}
}
catch(Exception e)
{
	System.out.println(e);
}
%>
